package com.example.sls.service.impl.field;

import com.example.sls.pojo.field.FieldReviews;
import com.example.sls.dao.field.FieldReviewsDao;
import com.example.sls.service.intserfaces.field.FieldReviewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 场地评价表(FieldReviews)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:04
 */
@Service
public class FieldReviewsServiceImpl implements FieldReviewsService {
  @Autowired
  FieldReviewsDao fieldReviewsDao;

  @Override
  public FieldReviews queryById(Integer id) {
    return fieldReviewsDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return fieldReviewsDao.deleteById(id);
  }

  @Override
  public int update(FieldReviews fieldReviews) {
    return fieldReviewsDao.update(fieldReviews);
  }

  @Override
  public int insert(FieldReviews fieldReviews) {
    return fieldReviewsDao.insert(fieldReviews);
  }

  @Override
  public long count() {
    return fieldReviewsDao.count();
  }

  @Override
  public List<FieldReviews> queryAllByLimit(FieldReviews fieldReviews, Integer pageSize, Integer offset) {
    return fieldReviewsDao.queryAllByLimit(fieldReviews, pageSize, offset);
  }
}
